import module from '../../module'

export default name => {
  const root = `${module.code}/${name}/`
  const crud = $http.crud(root)
    // 查询客票信息
  crud.getorderinfo = params => {
    return $http.get('/dispatch/common/getorderinfo', params)
    }
    // 改签
  crud.changeticket = params => {
    return $http.post('/dispatch/common/changetickets', params)
    }
    // 退票
  crud.refundticket = params => {
    return $http.post('/dispatch/common/refundtickets', params)
  }
    // 车辆列表
  crud.vehicle_info = params => {
    return $http.get('/baseinfo/vehicle_info/query', params)
  }
  return {
    ...crud
  }
}
